import http, {HttpOptions} from "../http"
// 响应接口
export interface GetAllClassesRes {
    code: number;
    msg: string;
    data: {
        id: number;
        wasteClassName: string;
        wasteWeight: number;
        updateBy: string;
        updateTime: string;
        status: number;
    }[];
    timestamp: number;
    now: string;
}


export function getAllClasses(): Promise<GetAllClassesRes> {
    const config:HttpOptions  = {
        msg: false,
        token: true,
        load: false,
    }
    return http.get(`/waste-class`, config);
}

